the presidency of a republic